/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JPanel;
import modelo.ModeloExperimento;
import modelo.ModeloGrafica;

/**
 *
 * @author juanan
 */
public class VentanaPpal extends JFrame
{

    Container contenedorTotal;
    JPanel panelTotal;
    Barra barraAcciones;
    BarraIconos barraIconos;
    
    
    private ModeloGrafica m;
    private Experimento experimento;
    private ModeloExperimento mExp;
    
    public VentanaPpal()
    {
        m=new ModeloGrafica();
        mExp=new ModeloExperimento();
       // PanelGrafico panelGrafico=new PanelGrafico(m);
        
        
        
        barraIconos=new BarraIconos();
        Dimension d=Toolkit.getDefaultToolkit().getScreenSize();
        setTitle("Experimentos");
        setSize(d);
        JPanel aux=new JPanel();
        aux.setLayout(new FlowLayout());
        contenedorTotal=this.getContentPane();
        contenedorTotal.setLayout(new BorderLayout());
        panelTotal=new JPanel();
        panelTotal.setLayout(new BorderLayout());
        experimento =new Experimento(mExp);
        barraAcciones=new Barra(experimento);
        panelTotal.add(experimento, BorderLayout.CENTER);
        panelTotal.add(barraAcciones, BorderLayout.NORTH);
        panelTotal.add(barraIconos, BorderLayout.SOUTH);
        contenedorTotal.add(panelTotal,BorderLayout.CENTER);
    }
}
